package com.web.exiaodao.remote.vo;

import com.web.exiaodao.business.constant.JConstant;
import com.web.exiaodao.business.entity.MakeMoneyTable;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

/**
 * @author eason.zt
 * @ClassName: MakeMoneyTableVo
 * @Description:签到-孝亲币管理 Vo
 * @date 2015年3月23日 下午1:00:00
 */
@ApiModel(value = "签到-孝亲币管理Vo对象")
public class MakeMoneyTableVo {

    @ApiModelProperty(value = "主键，自动增长")
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    /**
     * {@link JConstant.IntegralTypeEnum}
     */
    @ApiModelProperty(value = "类型（1：签到 2：转盘 3:任务 4：评论  5：分享 6：留言 7:做义工 8:看视频）,类型（1：签到 2：超级大转盘 3:任务 4：评论  5：分享 6：留言 7:做义工 8:看视频）")
    private Long type;
    @ApiModelProperty(value = "类型名称")
    private String typeName;
    @ApiModelProperty(value = "赚到钱的金额（消费or赚钱都是正数）,赚到钱的金额（消费or赚钱都是正数）")
    private Double makeMoney_Cost;
    @ApiModelProperty(value = "用户id,用户id")
    private Long userId;
    @ApiModelProperty(value = "赚钱还是消费（-1:消费；1:赚钱）,赚钱还是消费（-1:消费；1:赚钱）")
    private Integer consumeOrMakeMoney;
    @ApiModelProperty(value="订单号;订单号(订单取消的时候退还积分时候用)")
    private String orderNo;

    //新增
    @ApiModelProperty(value = "用户Vo对象,用户Vo对象")
    private UserVo userVo;
    @ApiModelProperty(value = "用户Vo对象,用户Vo对象")
    private MakeMoneyTable makeMoneyTable;


    public MakeMoneyTableVo(Long id, String createTime, Long type,
                            String typeName, Double makeMoney_Cost, Long userId,
                            Integer consumeOrMakeMoney, UserVo userVo,
                            MakeMoneyTable makeMoneyTable) {
        super();
        this.id = id;
        this.createTime = createTime;
        this.type = type;
        this.typeName = typeName;
        this.makeMoney_Cost = makeMoney_Cost;
        this.userId = userId;
        this.consumeOrMakeMoney = consumeOrMakeMoney;
        this.userVo = userVo;
        this.makeMoneyTable = makeMoneyTable;
    }

    public MakeMoneyTableVo() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getType() {
        return type;
    }

    public void setMakeMoney_Cost(Double makeMoney_Cost) {
        this.makeMoney_Cost = makeMoney_Cost;
    }

    public Double getMakeMoney_Cost() {
        return makeMoney_Cost;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setConsumeOrMakeMoney(Integer consumeOrMakeMoney) {
        this.consumeOrMakeMoney = consumeOrMakeMoney;
    }

    public Integer getConsumeOrMakeMoney() {
        return consumeOrMakeMoney;
    }

    public String getTypeName() {
        typeName = JConstant.IntegralTypeEnum.getName(type);
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public UserVo getUserVo() {
        return userVo;
    }

    public void setUserVo(UserVo userVo) {
        this.userVo = userVo;
    }

    public MakeMoneyTable getMakeMoneyTable() {
        return makeMoneyTable;
    }

    public void setMakeMoneyTable(MakeMoneyTable makeMoneyTable) {
        this.makeMoneyTable = makeMoneyTable;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
}

